package com.hs.room.repository.service

import com.hs.room.model.sys.SysLog
import kotlinx.coroutines.flow.Flow

/**
 * 日志的
 */
interface ISysLogRepository {

    fun insertLog(sysLog: SysLog)

    suspend fun updateLog(sysLog: SysLog): Int

    suspend fun getSysLogs(): Flow<List<SysLog>>

    suspend fun getByCombinedConditions( pageIndex: Int,
                                                           pageSize: Int) :
           Flow<List<SysLog>>

    suspend fun getAllCountByCombinedConditions():Int

    fun count(): Int

}